{if $smarty.post.name != ''}From: {$smarty.post.name|escape:'html'}<br />{/if}
{if $smarty.post.username != ''}Username: {$smarty.post.username|escape:'html'}<br />{/if}
{if $smarty.post.email != ''}Email: {$smarty.post.email|escape:'html'}<br /><br />{/if}
Message:<br />
{$smarty.post.message|escape:'html'|nl2br}